gdk: Rename gdk_seat_get_physical_devices() to gdk_seat_get_devices()
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 30 Jul 2020 15:52:28 +0000 (17:52 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 30 Jul 2020 16:44:40 +0000 (18:44 +0200)
We don't want to tell what they are, and the distinction is now less
clear. Remove the adjective from the function name.

docs/reference/gdk/gdk4-sections.txt
gdk/broadway/gdkdevice-broadway.c
gdk/gdkseat.c
gdk/gdkseat.h
gdk/gdkseatdefault.c
gdk/gdkseatprivate.h
gdk/gdksurface.c
gdk/wayland/gdkdevice-wayland.c
gdk/x11/gdkmain-x11.c
gtk/inspector/general.c
testsuite/gdk/seat.c

index e25321cc23a4a25cc1219c8cc43047d8607c6afc..a7c942a4e59f472960226a6de5616ec7f2f1e1fe 100644 (file)
@@ -428,7 +428,7 @@ gdk_seat_get_display
 gdk_seat_get_capabilities
 gdk_seat_get_pointer
 gdk_seat_get_keyboard
-gdk_seat_get_physical_devices
+gdk_seat_get_devices
 gdk_seat_get_tools
 
 <SUBSECTION Standard>
index 7b2d45670b59dfa6115a9b230cdd4792c1d8a060..8ed1a9ccf481cbb927bf80185aef220c66671248 100644 (file)
@@ -135,7 +135,7 @@ _gdk_broadway_surface_grab_check_unmap (GdkSurface *surface,
 
   seat = gdk_display_get_default_seat (display);
 
-  devices = gdk_seat_get_physical_devices (seat, GDK_SEAT_CAPABILITY_ALL);
+  devices = gdk_seat_get_devices (seat, GDK_SEAT_CAPABILITY_ALL);
   devices = g_list_prepend (devices, gdk_seat_get_keyboard (seat));
   devices = g_list_prepend (devices, gdk_seat_get_pointer (seat));
 
index 9c29968ae7992c3d09ce1a1674055438d790d746..a88e8e7785eed9aadc2801eb3e5b0e10517d7b65 100644 (file)
@@ -324,26 +324,26 @@ gdk_seat_ungrab (GdkSeat *seat)
 }
 
 /**
- * gdk_seat_get_physical_devices:
+ * gdk_seat_get_devices:
  * @seat: a #GdkSeat
  * @capabilities: capabilities to get devices for
  *
- * Returns the physical devices that match the given capabilities.
+ * Returns the devices that match the given capabilities.
  *
  * Returns: (transfer container) (element-type GdkDevice): A list of #GdkDevices.
  *          The list must be freed with g_list_free(), the elements are owned
  *          by GDK and must not be freed.
  **/
 GList *
-gdk_seat_get_physical_devices (GdkSeat             *seat,
-                               GdkSeatCapabilities  capabilities)
+gdk_seat_get_devices (GdkSeat             *seat,
+                      GdkSeatCapabilities  capabilities)
 {
   GdkSeatClass *seat_class;
 
   g_return_val_if_fail (GDK_IS_SEAT (seat), NULL);
 
   seat_class = GDK_SEAT_GET_CLASS (seat);
-  return seat_class->get_physical_devices (seat, capabilities);
+  return seat_class->get_devices (seat, capabilities);
 }
 
 /**
index 1802d5348fd86b665e4cb29a346a2725998662f3..4924067bd0180eb7f16894a22964b1fa6ed066c6 100644 (file)
@@ -75,7 +75,7 @@ GdkSeatCapabilities
                gdk_seat_get_capabilities        (GdkSeat             *seat);
 
 GDK_AVAILABLE_IN_ALL
-GList *        gdk_seat_get_physical_devices    (GdkSeat             *seat,
+GList *        gdk_seat_get_devices             (GdkSeat             *seat,
                                                  GdkSeatCapabilities  capabilities);
 
 GList *        gdk_seat_get_tools               (GdkSeat *seat);
index dd44233a6baf1b98fdd875e84350bbeb0d8c83c9..c9595bafdff0a33734e399b72fdf25a97f93c216 100644 (file)
@@ -262,8 +262,8 @@ append_filtered (GList               *list,
 }
 
 static GList *
-gdk_seat_default_get_physical_devices (GdkSeat             *seat,
-                                       GdkSeatCapabilities  capabilities)
+gdk_seat_default_get_devices (GdkSeat             *seat,
+                              GdkSeatCapabilities  capabilities)
 {
   GdkSeatDefaultPrivate *priv;
   GList *devices = NULL;
@@ -315,7 +315,7 @@ gdk_seat_default_class_init (GdkSeatDefaultClass *klass)
   seat_class->ungrab = gdk_seat_default_ungrab;
 
   seat_class->get_logical_device = gdk_seat_default_get_logical_device;
-  seat_class->get_physical_devices = gdk_seat_default_get_physical_devices;
+  seat_class->get_devices = gdk_seat_default_get_devices;
   seat_class->get_tools = gdk_seat_default_get_tools;
 }
 
index 90e8a8674ca0c4d4734b2e44b28f0afa477bc99a..171a3bde3a64c65c3b08d785bbb9d3db6d675d33 100644 (file)
@@ -54,8 +54,8 @@ struct _GdkSeatClass
 
   GdkDevice * (* get_logical_device) (GdkSeat             *seat,
                                       GdkSeatCapabilities  capability);
-  GList *     (* get_physical_devices) (GdkSeat             *seat,
-                                        GdkSeatCapabilities  capabilities);
+  GList *     (* get_devices) (GdkSeat             *seat,
+                               GdkSeatCapabilities  capabilities);
 
   GList * (* get_tools) (GdkSeat *seat);
 };
index 6cbbe391ee46461522929df2b2d03eb5fbd22d6b..63abe2595bb051ce839111f4692adc2040843cc9 100644 (file)
@@ -1686,7 +1686,7 @@ gdk_surface_hide (GdkSurface *surface)
       seat = gdk_display_get_default_seat (display);
       if (seat)
         {
-          devices = gdk_seat_get_physical_devices (seat, GDK_SEAT_CAPABILITY_ALL);
+          devices = gdk_seat_get_devices (seat, GDK_SEAT_CAPABILITY_ALL);
           devices = g_list_prepend (devices, gdk_seat_get_keyboard (seat));
           devices = g_list_prepend (devices, gdk_seat_get_pointer (seat));
         }
@@ -1804,7 +1804,7 @@ gdk_surface_set_cursor (GdkSurface *surface,
           device = gdk_seat_get_pointer (s->data);
           gdk_surface_set_cursor_internal (surface, device, surface->cursor);
 
-          devices = gdk_seat_get_physical_devices (s->data, GDK_SEAT_CAPABILITY_TABLET_STYLUS);
+          devices = gdk_seat_get_devices (s->data, GDK_SEAT_CAPABILITY_TABLET_STYLUS);
           for (d = devices; d; d = d->next)
             {
               device = d->data;
index bf04b191427e07b308bd2a96e75d79e910a84c69..6ca368d9aa4f3a509c47b2d46862cdee8925dcbd 100644 (file)
@@ -4652,8 +4652,8 @@ gdk_wayland_seat_get_logical_device (GdkSeat             *seat,
 }
 
 static GList *
-gdk_wayland_seat_get_physical_devices (GdkSeat             *seat,
-                                       GdkSeatCapabilities  capabilities)
+gdk_wayland_seat_get_devices (GdkSeat             *seat,
+                              GdkSeatCapabilities  capabilities)
 {
   GdkWaylandSeat *wayland_seat = GDK_WAYLAND_SEAT (seat);
   GList *physical_devices = NULL;
@@ -4725,7 +4725,7 @@ gdk_wayland_seat_class_init (GdkWaylandSeatClass *klass)
   seat_class->grab = gdk_wayland_seat_grab;
   seat_class->ungrab = gdk_wayland_seat_ungrab;
   seat_class->get_logical_device = gdk_wayland_seat_get_logical_device;
-  seat_class->get_physical_devices = gdk_wayland_seat_get_physical_devices;
+  seat_class->get_devices = gdk_wayland_seat_get_devices;
   seat_class->get_tools = gdk_wayland_seat_get_tools;
 }
 
index 4208ab881e525824856710423bc947f0a5b05c7a..b7a7e3b9cd240be0d549220dde850441c7d7f75b 100644 (file)
@@ -141,7 +141,7 @@ _gdk_x11_surface_grab_check_unmap (GdkSurface *surface,
 
   seat = gdk_display_get_default_seat (display);
 
-  devices = gdk_seat_get_physical_devices (seat, GDK_SEAT_CAPABILITY_ALL);
+  devices = gdk_seat_get_devices (seat, GDK_SEAT_CAPABILITY_ALL);
   devices = g_list_prepend (devices, gdk_seat_get_keyboard (seat));
   devices = g_list_prepend (devices, gdk_seat_get_pointer (seat));
 
@@ -169,7 +169,7 @@ _gdk_x11_surface_grab_check_destroy (GdkSurface *surface)
 
   seat = gdk_display_get_default_seat (display);
 
-  devices = gdk_seat_get_physical_devices (seat, GDK_SEAT_CAPABILITY_ALL);
+  devices = gdk_seat_get_devices (seat, GDK_SEAT_CAPABILITY_ALL);
   devices = g_list_prepend (devices, gdk_seat_get_keyboard (seat));
   devices = g_list_prepend (devices, gdk_seat_get_pointer (seat));
 
index 499c1e65e72f87c6eba33846a190d4fbf9c5cb0f..a28ef07ccd65f307fd605fc6e2da542ae8d81a7b 100644 (file)
@@ -820,7 +820,7 @@ add_seat (GtkInspectorGeneral *gen,
   g_free (text);
   g_free (caps);
 
-  list = gdk_seat_get_physical_devices (seat, GDK_SEAT_CAPABILITY_ALL);
+  list = gdk_seat_get_devices (seat, GDK_SEAT_CAPABILITY_ALL);
 
   for (l = list; l; l = l->next)
     add_device (gen, GDK_DEVICE (l->data));
index 640e7d0c8160677aca692183e6ae442faf9c1b83..bd982361329ef33ab1115f6e9487fb90013bc019 100644 (file)
@@ -60,7 +60,7 @@ test_default_seat (void)
   g_assert (caps != GDK_SEAT_CAPABILITY_NONE);
 
   pointer0 = gdk_seat_get_pointer (seat0);
-  physical_devices = gdk_seat_get_physical_devices (seat0, GDK_SEAT_CAPABILITY_POINTER);
+  physical_devices = gdk_seat_get_devices (seat0, GDK_SEAT_CAPABILITY_POINTER);
 
   if ((caps & GDK_SEAT_CAPABILITY_POINTER) != 0)
     {
@@ -84,7 +84,7 @@ test_default_seat (void)
     }
 
   keyboard0 = gdk_seat_get_keyboard (seat0);
-  physical_devices = gdk_seat_get_physical_devices (seat0, GDK_SEAT_CAPABILITY_KEYBOARD);
+  physical_devices = gdk_seat_get_devices (seat0, GDK_SEAT_CAPABILITY_KEYBOARD);
 
   if ((caps & GDK_SEAT_CAPABILITY_KEYBOARD) != 0)
     {